package com.dmall.ssm.param;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class QueryCriterion {
    private Map<String, Object> eqField;
    private Map<String, Object> inField;

    public Map<String, Object> getEqField() {
        return eqField;
    }

    public Map<String, Object> getInField() {
        return inField;
    }

    public void eq(String columnName, Object value) {
        if (this.eqField == null) {
            eqField = new HashMap<>();
        }
        eqField.put(columnName, value);
    }

    public void in(String columnName, List<?> values) {
        if (this.inField == null) {
            inField = new HashMap<>();
        }
        inField.put(columnName, values);
    }
}
